package writer;

import java.io.*;

/**
 * @author 王艺锡
 * @version 1.0
 * 转换流
 * Writer的子类
 * OutputStreamWriter可以将OutputStream字节流包装成Writer字符流
 */
public class OutputStreamWriter_ {
    public static void main(String[] args) throws IOException {
    String filePath = "e:\\wyx.txt";
    BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(
                                                new FileOutputStream(filePath), "gbk"));
    bw.write("越来越好...");
    bw.close();
    }
}
